export const tableOption = {
  border: true, //是否带有纵向边框
  selection: true, //行最前面的选择框
  menuAlign: "center",
  searchLabelWidth: 110, //搜索项标题宽度
  searchIndex: 4, //筛选收缩
  searchIcon: true,
  align: "center", //对齐方式
  emptyText: '自定义暂无数据提示语',
  column: [
    {
      label: "兑换人手机号",
      prop: "redeemerPhone",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "卡号",
      prop: "cardNo",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "兑换类型",
      prop: "redeemType",
      type: 'select',
      search: true,
      dicData: [{
        label: '免费兑换',
        value: 1
      }, {
        label: '积分兑换',
        value: 2
      }, {
        label: '优惠券兑换',
        value: 3
      }],
      span: 12
    },
    {
      label: "兑换积分",
      prop: "redeemPoints",
      type: "input",
      span: 12
    },
    {
      label: "兑换时间",
      prop: "redeemTime",
      type: "datetime",
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      span: 12
    },
    {
      label: "兑换状态",
      prop: "redeemStatus",
      type: 'select',
      search: true,
      dicData: [{
        label: '已兑换',
        value: 'Y'
      }, {
        label: '未兑换',
        value: 'N'
      }],
      span: 12
    },
    {
      label: "兑换车牌",
      prop: "plateNo",
      type: "input",
      search: true,
      span: 12
    },
    {
      label: "活动",
      prop: "activityId",
      type: "select",
      search: true,
      dicUrl: `/admin/mall/xglParkingSetting/list`,
      props: {
        label: 'activityName',
        value: 'activityId'
      },
      formatter: (val, value, label) => {
        if (value === label) {
          return `${value}`
        }
        return `${label}(${value})`
      },
      width: 280,
      span: 12
    },
    {
      label: "兑换时长",
      prop: "redeemDuration",
      type: "input",
      span: 12
    },
    {
      label: "兑换的券编号",
      prop: "couponId",
      type: "input",
      span: 12
    },
  ]
}
